import request from '@/utils/request'

// 查询博客标签关联列表
export function listTag(query) {
  return request({
    url: '/project/tag/list',
    method: 'get',
    params: query
  })
}

// 查询博客标签关联详细
export function getTag(blogTagId) {
  return request({
    url: '/project/tag/' + blogTagId,
    method: 'get'
  })
}

// 新增博客标签关联
export function addTag(data) {
  return request({
    url: '/project/tag',
    method: 'post',
    data: data
  })
}

// 修改博客标签关联
export function updateTag(data) {
  return request({
    url: '/project/tag',
    method: 'put',
    data: data
  })
}

// 删除博客标签关联
export function delTag(blogTagId) {
  return request({
    url: '/project/tag/' + blogTagId,
    method: 'delete'
  })
}

// 导出博客标签关联
export function exportTag(query) {
  return request({
    url: '/project/tag/export',
    method: 'get',
    params: query
  })
}
